package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbUserJournalService;
import com.gidgabs.modules.dao.TbUserJournalDao;
import com.gidgabs.modules.entity.TbUserJournalEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserJournalServiceImpl implements TbUserJournalService {
	@Autowired
	private TbUserJournalDao userJournalDao;
	
	@Override
	public TbUserJournalEntity queryObject(Integer id){
		return userJournalDao.queryObject(id);
	}
	
	@Override
	public List<TbUserJournalEntity> queryList(Map<String, Object> map){
		return userJournalDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userJournalDao.queryTotal(map);
	}
	
	@Override
	public void save(TbUserJournalEntity userJournal){
		userJournalDao.save(userJournal);
	}
	
	@Override
	public void update(TbUserJournalEntity userJournal){
		userJournalDao.update(userJournal);
	}
	
	@Override
	public void delete(Integer id){
		userJournalDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		userJournalDao.deleteBatch(ids);
	}
	
}
